package com.test.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * 考勤记录(AttendLog)实体类
 *
 * @author makejava
 * @since 2022-11-12 11:01:46
 */
public class AttendLog implements Serializable {
    private static final long serialVersionUID = 387080694310613638L;
    /**
     * 主键id
     */
    private Integer id;
    /**
     * 员工ID
     */
    private Integer staffId;
    /**
     * 员工工号
     */
    private String staffNo;
    /**
     * 员工姓名
     */
    private String staffName;
    /**
     * 考勤状态
     */
    private Integer attendStatus;
    /**
     * 备注
     */
    private String remark;
    /**
     * 签到时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStaffId() {
        return staffId;
    }

    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    public String getStaffNo() {
        return staffNo;
    }

    public void setStaffNo(String staffNo) {
        this.staffNo = staffNo;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public Integer getAttendStatus() {
        return attendStatus;
    }

    public void setAttendStatus(Integer attendStatus) {
        this.attendStatus = attendStatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "AttendLog{" +
                "id=" + id +
                ", staffId=" + staffId +
                ", staffNo='" + staffNo + '\'' +
                ", staffName='" + staffName + '\'' +
                ", attendStatus=" + attendStatus +
                ", remark='" + remark + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}

